package com.qidian.buy.service;

import com.qidian.buy.entity.Category;
import com.qidian.buy.util.pojo.LayuiTableDTO;
import com.qidian.buy.util.pojo.QDResult;

/**
 * @Author 郭浩
 */
public interface ICategoryService {
    QDResult save(Category category);
    QDResult update(Category category);
    QDResult<Category> get(Long id);
    LayuiTableDTO<Category> query(int page, int limit, Category category);
    QDResult queryAllFirstLevel();

    QDResult queryByParentId(Long parentId);

}
